home *** CD-ROM | disk | FTP | other *** search
/ Pro One: Netcracker Netscape Navigator / ProOne: Netcracker Netscape Navigator.iso / pc / nc / bm / bm_news2.geo / 00014.ls < prev    next >
Encoding:
Text File  |  1997-03-19  |  1.4 KB  |  67 lines

  1. on ClickScroll spriteNum, castDown, macroName
  2.   set flag to 0
  3.   set SaveCast to the castNum of sprite spriteNum
  4.   set flag to swapScroll(spriteNum, SaveCast, castDown)
  5.   repeat while the stillDown
  6.     set flag to swapScroll(spriteNum, SaveCast, castDown)
  7.     if flag = 1 then
  8.       do(macroName)
  9.     end if
  10.   end repeat
  11. end
  12.  
  13. on swapScroll spriteNum, SaveCast, castDown
  14.   if rollOver(spriteNum) then
  15.     set the castNum of sprite spriteNum to the number of cast castDown
  16.     updateStage()
  17.     return 1
  18.   else
  19.     set the castNum of sprite spriteNum to the number of cast SaveCast
  20.     updateStage()
  21.     return 0
  22.   end if
  23. end
  24.  
  25. on handleUP
  26.   Set_SMStepMeter("decrease")
  27. end
  28.  
  29. on handleDown
  30.   Set_SMStepMeter("increase")
  31. end
  32.  
  33. on Get_ScreenSubject
  34.   global ScreenSubject
  35.   return ScreenSubject
  36. end
  37.  
  38. on switchButt spriteNum, castDown, macroName
  39.   set flag to 0
  40.   set SaveCast to the castNum of sprite spriteNum
  41.   set flag to swapCast(spriteNum, SaveCast, castDown)
  42.   repeat while the stillDown
  43.     set flag to swapCast(spriteNum, SaveCast, castDown)
  44.   end repeat
  45.   if flag = 1 then
  46.     do(macroName)
  47.   end if
  48. end
  49.  
  50. on swapCast spriteNum, SaveCast, castDown
  51.   if rollOver(spriteNum) then
  52.     set the castNum of sprite spriteNum to the number of cast castDown
  53.     updateStage()
  54.     return 1
  55.   else
  56.     set the castNum of sprite spriteNum to the number of cast SaveCast
  57.     updateStage()
  58.     return 0
  59.   end if
  60. end
  61.  
  62. on handleExit
  63.   tell the stage
  64.     CloseBookMarkWindow2()
  65.   end tell
  66. end
  67.